package com.example.hello.dao.entity;


import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by JiWen on 2018/12/9 at Qudian.
 */
@Getter
@Setter
public class BaseEntity implements Serializable {
    private Long id;
    private Date updateTime;
    private Date createTime;
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }

}
